package org.hrqing.chess.util;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @author Hrqing
 */
public class NumberUtils {

    private static final String[] numbers = new String[]{"", "一", "二", "三", "四", "五", "六", "七", "八", "九"};

    public static String format(int value) {
        if (value <= 0 || value > 9) {
            return numbers[0];
        }
        return numbers[value];
    }
}
